package com.qingfeng.medical.biz.order.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qingfeng.medical.biz.order.domain.entity.OrderInfo;
import com.qingfeng.medical.biz.order.domain.ro.OrderInfoRo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.time.LocalDate;
import java.util.List;

/**
 * 订单表
 * 
 * @author 清风学java
 * @date 2023-04-28 17:10:43
 */
@Repository
public interface OrderInfoMapper extends BaseMapper<OrderInfo> {

    /**
     * 分页查询订单数据
     * @param orderInfoPage
     * @param depId
     * @param orderDate
     * @return
     */
    List<OrderInfoRo> selectOrderInfoList(Page<OrderInfo> orderInfoPage,
                                          @Param("depId") Long depId,
                                          @Param("orderDate") LocalDate orderDate);
}
